package com.kingyea.mobilepolice.apimanage.providerservicemonitor.dao;

import com.kingyea.mobilepolice.apimanage.providerservicemonitor.bean.ProviderServiceMonitor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ProviderServiceMonitorMapper
 * @date Created in 2018-05-21 14:11:27
 */
@Repository
public interface ProviderServiceMonitorMapper {

    /**
     * 通过ID获取对象
     */
    ProviderServiceMonitor getById(@Param("hostSerialNo") String hostSerialNo, @Param("timeId") Long timeId);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("hostSerialNo") String hostSerialNo, @Param("timeId") Long timeId);

    /**
     * 更新对象
     */
    void update(ProviderServiceMonitor obj);

    /**
     * 保存对象
     */
    void save(ProviderServiceMonitor obj);

    /**
     * 查询列表
     */
    List<ProviderServiceMonitor> list(ProviderServiceMonitor obj);

    /**
     * 根据搜索条件搜索性能数据列表
     *
     * @param map
     * @return java.lang.Object
     * @author Mr.Lin
     * @date 2018/5/22 23:48
     */
    List searchByCondition(Map<String, Object> map);
}
